package demo;

class Base {
    public int a;
    public int b;
}

class Derived extends Base {
    public int c;
    public void method() {
        a = 1;
        b = 2;
        c = 3;
    }
}

public class Test2 {
    public static void main(String[] args) {
        Derived derived = new Derived();
        derived.method();
    }
}






